<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<!--标准mui.css-->
		<link href="../../dep/mui/css/mui.css" rel="stylesheet" />
		<link href="../../css/style.css" rel="stylesheet" />
		<link href="../../css/page/stock/stockDetail.css" rel="stylesheet" />

	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav header-lay">
			<h1 class="mui-title"></h1>
			<button id="back" class="mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left">
		    	<span class="mui-icon mui-icon-left-nav"></span>返回</button>
			<button id="deleteBtn" class="mui-btn mui-btn-blue mui-btn-link mui-pull-right">&nbsp;删除&nbsp;</button>
		</header>
		<div id="view" class="mui-content">

		</div>
		<div class="mui-btn-bg" id="sub-btn">
			<button type="button" class="mui-btn mui-btn-block changeBtn">编辑</button>
		</div>
		<script id="bindView" type="text/html">

			<div class="mui-table-view">
				<div class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						{{ if goodsInfo.infoGoodsImg && goodsInfo.infoGoodsImg.length>0}}
						<img class="mui-media-object mui-pull-left" src="{{goodsInfo.infoGoodsImg[0].imgLink}}"> {{ else }}
						<img class="mui-media-object mui-pull-left" src="../../img/chioceProduct/product-icon.png"> {{/if}}

						<div class="mui-media-body">
							<p class='mui-ellipsis list-color1 goodsSerial'>{{goodsInfo.goodsSerial}}</p>
							<p class='mui-ellipsis list-color1'>{{goodsInfo.goodsName}}-{{goodsInfo.specValue}}</p>
							<p class='mui-ellipsis'>货品分类：{{goodsInfo.infoGoodsCatalog.catalogName}}</p>
							<p class='mui-ellipsis'>货品单位：{{goodsInfo.unit}}</p>
							<p class='mui-ellipsis'>最高进价：{{goodsInfo.buyMaxPrice}}</p>
							<p class='mui-ellipsis'>最低售价：{{goodsInfo.sellMinPrice}}</p>
							<p class='mui-ellipsis'>预估成本：{{goodsInfo.costPrice}}</p>
						</div>
					</a>
				</div>
			</div>

			<ul class="mui-table-view">

				<li class="mui-table-view-cell">
					<div class="divlayleft">总库存量</div>
					<div class="divlayright">{{totalNumber}}</div>
				</li>

				{{each whInventory}}

				<li class="mui-table-view-cell">
					<div class="divlayleft">{{$value.whName}}</div>
					<div class="divlayright">{{$value.number}}</div>
				</li>

				{{/each}}

			</ul>
		</script>

	</body>

</html>
<script src="../../dep/seajs/3.0.0/sea.js"></script>
<script src="../../js/seajs_config.js"></script>
<script>
	seajs.use("../../js/stock/stockDetail")
</script>